Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track dependency categories on recursive dependencies #570

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Aug 7, 2023

When enumerating the recursive dependencies for a package descriptor, track which dependency categories the dependency appears to be a part of. This information can be used later to drop certain dependencies or inform a developer of the context around a relationship.

@cottsay cottsay added the enhancement New feature or request label Aug 7, 2023
@cottsay cottsay self-assigned this Aug 7, 2023
@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.03% 🎉

Comparison is base (c323f60) 81.90% compared to head (99f7a49) 81.93%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #570      +/-   ##
==========================================
+ Coverage   81.90%   81.93%   +0.03%     
==========================================
  Files          65       65              
  Lines        3746     3753       +7     
  Branches      722      724       +2     
==========================================
+ Hits         3068     3075       +7     
  Misses        622      622              
  Partials       56       56              
Files Changed Coverage Δ
colcon_core/package_descriptor.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mikepurvis
Copy link
Contributor

Yes please! Thanks for working on this.

@cottsay cottsay force-pushed the cottsay/dep-categories branch 3 times, most recently from 158a676 to fb04d02 Compare August 11, 2023 01:23
Copy link
Contributor

@nuclearsandwich nuclearsandwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's worth mentioning the shallowest-wins behavior for this data but other than that it's good to go.

When enumerating the recursive dependencies for a package descriptor,
track which dependency categories the dependency appears to be a part
of. This information can be used later to drop certain dependencies or
inform a developer of the context around a relationship.

Note that the category list is not merged when a dependency appears
multiple times in a package's tree, and the most shallow instance
prevails.
@cottsay cottsay merged commit fef4643 into master Aug 17, 2023
35 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cottsay/dep-categories branch August 17, 2023 23:02
@cottsay cottsay added this to the 0.13.0 milestone Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants